package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {

		String str = "Tra ta ta + Tra ta ta! - My vezem +++ -- 15 s s2o32bo5689y ++- 458 kota 15 +";
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (Character.isDigit(charAtIndex)) {
				continue;
			} else if (charAtIndex == '+') {
				System.out.print("++");
			} else if (charAtIndex == '-') {
				System.out.print("--");
			} else {
				System.out.print(charAtIndex);
			}

		}

	}
}
